<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

namespace Card\Model;
use Think\Model;

/**
 * 用户模型
 * @author 麦当苗儿 <zuojiazi@vip.qq.com>
 */

class OpenidCidModel extends Model {
   
	/**
     * 修改查看信息
     */
    public function update($data){
        $res = $this->save($data);        

        //登录次数加1
        if($res !== false){
            $res = $this->where('id='.$data['id'])->setInc('num',1);
            return $res;
        }else{
            return false;
        }

    }
}
